home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_nub_commie_gen_manager.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  65 lines

  1.  
  2.  
  3. # Jones 3D Cog Script
  4. #
  5. # NUB_Commie_Gen_manager.cog
  6. # Gather's commies created in nub_CommieGenMove.cog and sends them to the NUB_Commie_Grid.cog
  7. # This Cog and it's sister cog (2) are both needed... please do not remove either of them 
  8. #
  9. # [JM]
  10. #
  11. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  12. #
  13. # ========================================================================================
  14. symbols
  15.  
  16. message     startup
  17. message     user0
  18.  
  19. cog         NUB_Commie_Grid
  20.  
  21. thing       Commie00       local
  22. thing       Commie01       local
  23. thing       Commie02       local
  24.  
  25. int         counter        local
  26.  
  27. int         COMMIES=3      local
  28.  
  29.  
  30.  
  31. end
  32. #-------------------------------------------
  33. code
  34. #-------------------------------------------
  35.  
  36. startup:
  37.  
  38.     return;
  39. #-------------------------------------------
  40. user0:
  41.     
  42.     //Recieves 3 references to things that have been greated through cog and bounces them to the User0 message the grid cog
  43.     for(counter = 0; counter < COMMIES; counter = counter + 1)
  44.     {
  45.         Commie00[counter] = Getparam(counter);
  46.         CaptureThing(Commie00);
  47.     }
  48.     
  49.     SendMessageEx(NUB_Commie_Grid, User0, GetParam(0), GetParam(1), GetParam(2), 0);
  50.     
  51.     return;    
  52.  
  53. #-------------------------------------------
  54.  
  55. end                                            
  56.     
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.